Skip to content

Made it possible to update a single config#1981

Merged
jessevz merged 2 commits intodevfrom
1980-bug-fix-update-single-config
Mar 16, 2026
Merged

Made it possible to update a single config#1981
jessevz merged 2 commits intodevfrom
1980-bug-fix-update-single-config

Conversation

@jessevz
Copy link
Copy Markdown
Contributor

@jessevz jessevz commented Mar 16, 2026

closes #1980

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Enables API v2 to correctly update a single config record by routing single-object PATCH updates through the same config-update utility logic used for bulk updates, addressing issue #1980.

Changes:

  • Added ConfigUtils::updateSingleConfig() and refactored updateConfigs() to reuse it.
  • Overrode ConfigAPI::updateObject() so single PATCH operations use ConfigUtils::updateSingleConfig().

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
src/inc/utils/ConfigUtils.php Introduces single-config update helper and reuses it for bulk updates.
src/inc/apiv2/model/ConfigAPI.php Routes single-object PATCH updates through ConfigUtils to apply special config handling.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Comment thread src/inc/utils/ConfigUtils.php Outdated
Comment thread src/inc/utils/ConfigUtils.php Outdated
Comment thread src/inc/apiv2/model/ConfigAPI.php
@jessevz jessevz merged commit 5435032 into dev Mar 16, 2026
4 checks passed
@jessevz jessevz deleted the 1980-bug-fix-update-single-config branch March 16, 2026 13:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants